package com.tbit.uqbike.client.service;

import com.tbit.uqbike.client.pojo.AppointMent;
import com.tbit.uqbike.client.pojo.AppointMentLog;

import java.util.List;

/**
 * @Author: chen
 * @Description: 预约
 * @Date: 创建于 11:50 2020/8/17
 */
public interface AppointMentService {
    /**
     * 分页查询
     *
     * @param userId
     * @param pageNO
     * @param rowCount
     * @return
     */
    List<AppointMentLog> queryPage(Integer userId, Integer pageNO, Integer rowCount);

    /**
     * 分页查询总数
     *
     * @param userId
     * @return
     */
    Integer queryCount(Integer userId);

    /**
     * 通过用户id查询
     *
     * @param userId
     * @return
     */
    AppointMent getByUserId(Integer userId);

    /**
     * 添加
     *
     * @param appointMent
     */
    void add(AppointMent appointMent);

    /**
     * 删除
     *
     * @param userId
     */
    void del(Integer userId);
}
